﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="product_management.aspx.cs"
    Inherits="E1_eMart.admin.product_managerment" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="vi" xml:lang="vi">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<head>
    <title>eMart Manager's Site</title>
    <link rel="stylesheet" type="text/css" href="../css/stylesheet.css">
    <link rel="stylesheet" type="text/css" href="../css/base.css">
    <link rel="stylesheet" type="text/css" href="../css/dashboard.css">
</head>
<meta name="robots" content="NONE,NOARCHIVE">
<body class="dashboard">
    <form id="form1" runat="server">
    <!-- Container -->
    <div id="container">
        <!-- Header -->
        <div id="header">
            <div id="branding">
                <h1 id="site-name">
                    eMart Administration</h1>
                    <span><a href="../index.aspx">eMart Home</a></span>
            </div>
            <div id="user-tools">
                Chào mừng bạn, <strong>SherylCrow</strong>. <a href="#">Đổi mật khẩu</a> / <a href="#">
                    Thoát</a>
            </div>
        </div>
        <!-- END Header -->
        <div class="admin_nav">
            <ul>
                <li><a href="dashboard.aspx">
                    <img src="../images/house.png" alt="">Admin Home</a></li>
                <li><a href="usermanagement.aspx">
                    <img src="../images/page_edit.png" alt="">User Management</a></li>
                <li><a href="dashboard.aspx">
                    <img src="../images/plugin_edit.png" alt="">Statistics</a></li>
                <li><a href="product_managerment.aspx">
                    <img src="../images/table_edit.png" alt="">Product Management</a></li>
                <li><a href="comment_management.aspx" target="_blank">
                    <img src="../images/world.png" alt="">Comment Management</a></li>
                <li><a href="producttype_management.aspx">
                    <img src="../images/table_edit.png" alt="">Product Type Management</a></li>
            </ul>
        </div>
        <style><!--

        .admin_nav {
            margin-top:10px;
            margin-left:15px;
            vertical-align:middle;
        }
        .admin_nav img {
            vertical-align:middle;
            margin-right:5px;
        }
        .admin_nav ul {
            padding:0;
            margin:0;
        }
        .admin_nav li {
            display:inline-block;
            margin-left:0;
        }
        .admin_nav li a {
            display:inline-block;
            padding:5px 20px;
            background-color: #c7e0c7;
            border-radius:10px;
            font-size:11px;
        }
        .admin_nav li a:active {
            background-color: #b3c9b3;
        }
        -->
    </style>
        <!-- Content -->
        <div id="content" class="colMS">
            <h1>
                Site quản trị hệ thống.</h1>
            <br class="clear">
            <div id="main_content">
                <div class="box">
                    <div class="left">
                    </div>
                    <div class="right">
                    </div>
                    <div class="heading">
                        <h1>
                            Product Management</h1>
                        <div style="float: right;">
                            &nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Apply" />
                            <input type="button" value="Delete" />
                        </div>
                    </div>
                    <div class="content">
                        <table class="list">
                            <thead>
                                <tr>
                                    <td>
                                    </td>
                                    <td class="center">
                                        Ảnh
                                    </td>
                                    <td class="left">
                                        <a href="#" class="asc">Tên sản phẩm</a>
                                    </td>
                                    <td class="left">
                                        <a href="#">Description</a>
                                    </td>
                                    <td class="left">
                                        <a href="#">Price</a>
                                    </td>
                                    <td class="left">
                                        <a href="#">Trạng thái</a>
                                    </td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="filter">
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TenSanPham" runat="server"></asp:TextBox>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:TextBox ID="MoTaSanPham" runat="server"></asp:TextBox>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:TextBox ID="GiaHienTai" runat="server"></asp:TextBox>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        <asp:TextBox ID="TinhTrang" runat="server"></asp:TextBox>
                                        &nbsp;
                                    </td>
                                </tr>
                                <%for (int i = 0; i < listSP.Count; i++)
                                  { %>
                                <tr>
                                    <td style="text-align: center;">
                                        <input type="checkbox" name="selected[]" value="42">
                                    </td>
                                    <td class="center">
                                        <img src="../<%=listSP[i].Imglink%>" width="50px;" alt="Fender American Standard Stratocaster "
                                            style="padding: 1px; border: 1px solid #DDDDDD;">
                                    </td>
                                    <td class="left">
                                        <%=listSP[i].TenSanPham %>
                                    </td>
                                    <td class="left">
                                        <%=listSP[i].MoTaSanPham %>
                                    </td>
                                    <td class="left">
                                        <%=listSP[i].GiaHienTai %>
                                    </td>
                                    <td class="left">
                                        <%if (listSP[i].NgayHetHan.Value.CompareTo(DateTime.Now) < 0)
                                          { %>
                                        Bidding
                                        <%}
                                          else
                                          {%>
                                        Sold
                                        <%} %>
                                    </td>
                                </tr>
                                <%} %>
                            </tbody>
                        </table>
                        <div class="pagination">
                            <div class="results">
                                Hiển thị 1 đến 2 trong 2 (1 Trang)</div>
                        </div>
                    </div>
                </div>
            </div>
            <br class="clear">
        </div>
        <!-- END Content -->
        <div id="footer">
        </div>
    </div>
    <!-- END Container -->
    </form>
</body>
</html>
